﻿
namespace HSS.Xaml.UI.Controls
{
	#region Using Directives
	using System;
	using System.Windows;
	#endregion

	public partial class MultilineStringEditorDialog
	{
		public MultilineStringEditorDialog()
		{
			if (!System.ComponentModel.DesignerProperties.IsInDesignTool)
				throw new Exception();
			InitializeComponent();
		}
		public MultilineStringEditorDialog(string value)
		{
			InitializeComponent();
			if (value != null)
				this.txtStrings.Text = value;
		}

		#region Properties

		public bool ReadOnly
		{
			get
			{
				return this.txtStrings.IsReadOnly;
			}
			set
			{
				this.txtStrings.IsReadOnly = value;
			}
		}
		/// <summary>
		/// Gets the current value
		/// </summary>
		public string Value
		{
			get { return this.txtStrings.Text; }
		}
		#endregion

		private void btnOK_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = true;
		}

		private void btnCancel_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = false;
		}
	}
}

